//
//  HxgTools.m
//  HxgProject
//
//  Created by 黄小刚 on 2018/6/24.
//  Copyright © 2018年 XMYY-19. All rights reserved.
//

#import "HxgTools.h"

@implementation HxgTools

singleton_implementation(HxgTools)

- (NSMutableArray *)getProprotiesFormPlistFile:(NSString *)plistFileName
{
    NSString *plistPath = [[NSBundle mainBundle]pathForResource:plistFileName ofType:@"plist"];
    NSMutableArray *dataArr = [[NSMutableArray alloc] initWithContentsOfFile:plistPath];
    
    return dataArr;
}


- (BOOL)checkObjectHasEmpty:(NSString *)otherButtonTitles, ...
{
    BOOL isEmpty = NO;
    
    va_list args;
    va_start(args, otherButtonTitles);
    
    if (otherButtonTitles)
    {
        NSString *otherString;
        while ((otherString = va_arg(args, NSString *)))
        {
            NSLog(@"otherString:%@",otherString);
            if (isEmptyString(otherString)) {
                isEmpty = YES;
                break;
            }
        }
    } else {
        isEmpty = YES;
    }
    va_end(args);
    
    return isEmpty;
}

@end
